Motion Control of Underactuated Mechanical Systems