Copolymerization of acrylonitrile with N-substituted maleimides