A clutch mechanism for switching between position and stiffness control of a variable stiffness actuator