Investigation of the Stability of Satellite Large Angle Attitude Manoeuvres Using Nonlinear Optimization Methods