Gait and Trajectory Optimization for Legged Systems Through Phase-Based End-Effector Parameterization | Synapse