Text this: Optimal Midcourse Guidance Algorithm for Exoatmospheric Interception Using Analytical Gradients