Three Dimensional Attitude Control of an Underactuated Satellite with Thrusters