Flow and thermal regimes in river networks: effects of hydropower regulation and climate extremes