A river basin as a common-pool resource: a case study for the Jaguaribe basin in Brazil