Optical and EPR properties of V and Ti ions in CdTe