Incongruent reaction of Cu–(InGa) intermetallic precursors in H2Se and H2S