On the thermal stability of some aromatic-aliphatic polyimides