Condensation of lignin during heating of wood