Trajectory generation for transition from VTOL to wing-borne flight using inverse dynamics