__________ are used to divert water to prevent flooding, and therefore they are opened in times where the water level rises, threatening downstream cities.