Uncatalyzed and platinum-catalyzed gasification of carbon by water and carbon dioxide