A unified framework for water quality modelling in shallow seas