Causes and consequences of seasonal changes in the water flow of the São Francisco river in the semiarid of Brazil