Theoretical study of electronic structures of UNC and UCN