Thermoanalytical investigation of high-temperature transformations of polyimides