Pyrolysis of azetidinones. Part 2. Kinetics and mechanism of thermolysis of β-lactams and β-thiolactams