Pyrolysis and oxidation of polymers at high heating rates