Finite element modelling of the pyrolysis of wet wood subjected to fire