An improved model of an ASR pyrolysis reactor for energy recovery