The theory of the spectra of europium salts