Perturbation Bounds for Procrustes, Classical Scaling, and Trilateration, with Applications to Manifold Learning