New carboxyl-containing polyimides