Acquisition of a Desired Pure-Spin Condition for a Magnetically Actuated Spacecraft