Development of an equilibrium model for the simulation of thermochemical gasification and application to agricultural residues