Text this: Structural, electronic and optical properties of defect chalcopyrite CdGa2S4 and HgGa2S4 compounds by first principles