Global Trajectory Design for Position and Attitude Control of an Underactuated Satellite