Text this: Modelling of river flushing and water quality in a tributary constrained by barrages