Optimal Excitation Trajectories for Mechanical Systems Identification