Elucidation of homojunction formation in CuInS2 with impedance spectroscopy