Spatial effects and endogeneity in a Ricardian model of climate change: an application to a Mediterranean region