Thermal wave dynamics in rivers affected by hydropeaking