Application of the transition state theory to the pyrolysis of biomass and tars