Copolymer of ketonic resin–polyacrylonitrile