Introduction of the sphere map with application to spin-torque nano-oscillators