Scattering of atoms by solid surfaces. I