Optimization and calculation of the Hf-Ni phase diagram