The Effects of Surface-Water Flow on the Quality of Groundwater and Surface-Water Systems