Neural network modelling of coal pyrolysis