Influence of non-stationary river discharge on the quality of water withdrawal in the presence of density stratification