Structural transition and glass-forming ability of the Ni-Hf system studied by molecular dynamics simulation