Analysis and control of underactuated mechanical systems.