A Whole-Body Motion Planner for Humanoid Robots Using EZMP Preview Control and Resolved Momentum Control