Thermal decomposition of coal and coal-enrichment wastes