Text this: Optimal Control of Mechanical Systems