A compound unit method for incorporating ordered compounds into lattice models of alloys