Optimal atmospheric trajectory for aero-gravity assist