Groundwater flow and contaminant transport in carbonate aquifers