Behavior of wood during the thermal transition between torrefaction and pyrolysis: chemical and physical modifications.