Attitude stabilization of inertial pointing spacecraft using magnetic actuators