Molecular deformation of wood and cellulose studied by near infrared and Raman spectroscopy