Phase stability of Ni-based intermetallic compounds Ni3X studied by the recursion method