Robust control of robots with variable joint stiffness