A covalent model of the optical spectra and EPR parameters for CdS:Ti2+