Feedback linearization of variable stiffness joints based on twisted string actuators