Gas-phase electronic spectra of C18 and C22 rings.