Spacecraft attitude acquisition from an arbitrary spinning on tumbling state