Investigating structural, electronic and optical properties of CdS:Cr (A GGA and GGA+U study)