Electronic Structure and Spectra of Some Nitrogen Heterocycles