Design of compliant variable stiffness ball joint