A rationale for transformation twins in ordered alloys