Combining hydrologic simulations and stream-network models to reveal flow-ecology relationships