The theory of the electronic spectra of aromatic hydrocarbon dimers