Study of phases formed during production of copper indium diselenide by reacting copper, indium and selenium layers