The spectra of carbonium ions, cyanine dyes, and protonated Schiff base polyenes