Electronic and optical properties of CuGaS2 nanowires: a study of first principle calculations