Thermal behavior of aromatic polyamic acids and polyimides containing oxadiazole rings