Motion Adaptation Based on Learning the Manifold of Task and Dynamic Movement Primitive Parameters