Modification of cyanate ester resin by soluble polyimides