Properties of metastable ternary compounds and amorphous alloys in the Nd-Fe-B system