Contaminant transport, residence times, prevention, and remediation