The chemistry of coal