Understanding past and future impacts of climate change in agriculture: implications for adaptation planning