Modelling the phase diagram of transition metal alloys by the embedded atom method