Optimization for models of legged locomotion: parameter estimation