Learning Robot Motions with Stable Dynamical Systems under Diffeomorphic Transformations