Optimizing prosthetic gait by