A Survey of Foundation Models for Environmental Science