Mechanism of coal pyrolysis in relation to industrial practice