Continuum-mechanical derivation of the conservation equations for the pyrolysis and combustion of wood