Spatial and temporal evolution of water quality in reservoirs