Detection and remediation of contaminants in soil and water