A mathematical model for pyrolysis of a solid particle — effects of the heat of reaction