The ecological significance of exchange processes between rivers and groundwater