Interstellar Ices as a Source of CN-Bearing Molecules in Protoplanetary Disks