Model predictive approach for detumbling an underactuated satellite