Structure and morphology of CuGaS2 thin films