Optimization of Groundwater Pumping and River-Aquifer Exchanges for Management of Water Resources