A nonlinear dynamic inversion computational approach applied to the exact tracking problem for the spherical pendulum