Ab initio comparative study of the Cu–In and Cu–Sn intermetallic phases in Cu–In–Sn alloys