A geometric analysis of muscle mechanical power with applications to human gait