The kinetics of polymer decomposition through thermogravimetric analysis