Formation of CN (B2Σ) in the electron impact dissociation of cyanides