Thermal degradation of polyvinylchloride