First-principles approach to phase stability for a ternaryσphase: Application to Cr-Ni-Re