Current-induced transition in atomic-sized contacts of metallic alloys