Learning Riemannian Manifolds for Geodesic Motion Skills