Text this: Dynamic Motion-Based Optimization of Support and Transmission Mechanisms for Legged Robots