Design and modeling of variable stiffness joints based on compliant flexures