Thermodynamics of the stability of amorphous alloys of two transition metals