Second-Order Optimality Conditions for Variable End Time Terminal Control Problems