Design of a variable stiffness actuator based on flexures