Multiple-Phase Trajectory Optimization For Formation Flight In Civil Aviation