Local exchange and correlation potentials for electron scattering at solid surfaces