The electronic structure and phase diagrams of binary alloys with complex lattices: I. The application of static concentration waves and pseudopotential methods for calculating the phase diagrams