Interstellar chemistry of CN radicals on ices: the formation of CH_3CN and CH_3NC and potential connection to acetamide