A proposed absorption spectroscopy for studying energy levels of atoms in collision with surfaces