A unified model for diffractive and inelastic scattering of a light atom from a solid surface