Mechanism for CuPt-type ordering in mixed III–V epitaxial layers