Endogenous farm-type selection, endogenous irrigation, and spatial effects in Ricardian models of climate change