Stability of amorphous alloys