Photoelectron and electron impact spectrum of HCN