The inorganic geochemistry of coal, petroleum, and their gasification/combustion products