Emission and absorption spectra of aromatic and heterocyclic molecules: Absorption and emission spectra of heterocyclic molecules