Calculation of the electronic properties of simple metal surfaces through lateral averaged pseudopotential