A DFT investigation of optoelectronic properties of CdMgS2 compound. (2023)