A fundamental study on exchange processes in river ecosystems