Synthesis and crosslinking study of isomeric poly(thioether ether imide)s containing pendant nitrile and terminal phthalonitrile groups