Investigation of chemical changes in the strucure of wood thermally modified