Dynamic humanoid locomotion: Hybrid zero dynamics based gait optimization via direct collocation methods