Cellular theory of ordered AB alloys