Modelling and optimization of a pyrolysis plant using swine and goat manure as feedstock