Synthesis and thermal properties of poly(amideimide)s based on tricarboxylic acid anhydrides containing aryloxy groups