Optimal Spatial-Dynamic Management of Groundwater Conservation and Surface Water Quality with On-Farm Reservoirs