Short-range order and thermal stability in amorphous alloys