Ensuring safety in hands-on control through stability analysis of the human-robot interaction