what happens to the molecules when carbon dioxide is heated