Text this: A Novel Method of Trajectory Optimization for Underwater Gliders Based on Dynamic Identification