Global Regularization of Inverse Kinematics for Redundant Manipulators