Chemical barriers for controlling groundwater contamination