Design of a beam-based variable stiffness actuator via shape optimization in a CAD/CAE environment