The Spectra of the Doubly and Triply Ionized Rare Earths