Ultraviolet spectra and electronic structure of group IVA dichlorides