On the cluster approach for calculating electronic energies of solid surfaces