The alkaline earth halide spectra and their origin