Cybernetic leg prosthesis