Impacts of climate change on water resources in the Mediterranean basin : a case study in Catalonia, Spain