Arctic ice and the ecological rise of the dinosaurs