A spectroscopic investigation of the thermal decomposition of cellulose and alginic acid