Bound state resonant scattering of atoms from a layer of gas adsorbed on the surface of a crystal