Late Cretaceous restructuring of terrestrial communities facilitated the end-Cretaceous mass extinction in North America