DFT study of the structural and optoelectronic properties of Cd1−xAgxS half metallic alloys