Adaptation before anthropogenic climate change : a historical perspective on adaptation to droughts in Terrassa (1600-1870s, NE Spain)