Calculation of the surface composition of binary alloys by the regular solution theory; analysis of parameters involved and surface relaxation effects