Old-growth forests can help preserve biodiversity in a warming world