Atomic ordering and ferromagnetism in binary alloys