Theory of optical excitation of adsorbed rare gas atoms