Statistics for Assessing the surface water - groundwater interaction and its influence on the water quality from headwaters to lowlands