Modeling the freshwater ecological response to changes in flow and thermal regimes influenced by reservoir dynamics