Reaction kinetics and structural evolution of pyrolysis and gasification chars