Analysis and modelling of wood pyrolysis