A socio-ecological model of the Segura River basin, Spain