Polyimide or polyamide-acid formed by condensation of a polyamine with a polycarboxylic acid having at least three carboxyl groups or derivatives thereof