Virtual and physical prototyping of a beam-based variable stiffness actuator for safe human-machine interaction