A Passivity-based Approach for Variable Stiffness Control with Dynamical Systems