Singular Trajectories in Multi-Input Time-Optimal Problems: Application to Controlled Mechanical Systems