Long-term community responses to droughts in the early modern period : the case study of Terrassa, Spain