Phases in copper–gallium–metal–sulfide films (metal=titanium, iron, or tin)