Anthropogenic land-use legacies can exacerbate the impacts of climate change on forest ecosystems