Electronic absorption spectra and coordination of cobalt(II) in chloride systems: Crystal, solutions, and melts