Mechanisms and kinetics of thermal decomposition of plastics from isothermal and dynamic measurements