Dynamic attribution of water quality indexes in a multi-reservoir optimization model