From bipedal locomotion to prosthetic walking: A hybrid system and nonlinear control approach