Fast forward kinematics algorithm for real-time and high-precision control of the 3-RPS parallel mechanism