Mechanistic Understanding of Thermochemical Conversion of Polymers and Lignocellulosic Biomass