Mechanism and Controller Design of a Transfemoral Prosthesis With Electrohydraulic Knee and Motor-Driven Ankle