Inelastic scattering of atoms by solid surfaces