Design and modeling of variable stiffness and shape-changing robots