Understanding And Improving Locomotion: The Simultaneous Optimization Of Motion And Morphology In Legged Robots