Magnetic Ordering and Phase Separation in Binary Alloys with One Magnetic Component