The asymptotic interaction between H, H2 or a noble gas atom and the surface of NaCl, KCl or MgO