Task Space Control of Robots with Variable Stiffness Actuation