Text this: Optimization-Based Duality Analysis of Velocity and Force in Redundantly Actuated Systems with Application to Gait-Inspired Motion.