Optimal groundwater exploitation and pollution control