Mechanism of thermal degradation of aromatic polyimides with different chemical structures