Exact analytic solution for the spin-up maneuver of an axially symmetric spacecraft