Generalizing Locomotion Style to New Animals with Inverse Optimal Regression