Hybrid controller for global, robust, attitude stabilization of a magnetically actuated spacecraft