Text this: Reentry Trajectory Optimization Based on a Multistage Pseudospectral Method