Formation of CN(B2Σ) by the electron impact dissociation of cyanides. Rotational energy distribution of CN(B2Σ) from HCN