Machine learning-based framework for optimally solving the analytical inverse kinematics for redundant manipulators | Synapse