Combining hydrologic simulation and stream network modelling to reveal flow-ecology relationships