Thermal degradation of softwood lignin and hardwood lignin by TG-FTIR and Py-GC/MS