Study: Over nearly half a billion years, Earth's temperature has changed drastically, driven by carbon dioxide