Electrodeposition of CuIn1−xGaxSe2 precursor films: optimization of film composition and morphology