Aromatic anhydride or imide compounds