Release of carbon dioxide from coal and oil