Stability of ordered bulk and epitaxial semiconductor alloys.