Active magnetic attitude control system providing three-axis inertial attitude