Thermally induced transition from metastable Ni-Nb hexagonal phase to amorphous and its thermodynamic interpretation