Network models of coal thermal decomposition