Design of variable-damping control for prosthetic knee based on a simulated biped