Ordering of metal atoms in binary ccp, hcp, and bcc alloys