Trajectory optimization using indirect methods and parametric scramjet cycle analysis