Modification of bismaleimide resin by soluble poly(ester imide) containing trimellitimide moieties