A quantitative approach to the understanding of social-ecological systems : a case study from the Pyrenees