First chemical events in pyrolysis of wood