Supervised Manifold Learning for Functional Data