An orientation measurement system of the two-DOF permanent magnet spherical motor based on hall ring detectors