Robust attitude control of spacecraft with magnetic actuators