Electronic spectra of sulfates with the langbeinite structure