Projecting to a Slow Manifold: Singularly Perturbed Systems and Legacy Codes