The Pseudopotential Method and the Problem of Ordering in Alloys. I. Pairwise Interaction