Kinetic modeling and optimization of parameters for biomass pyrolysis