Outer shell excitation during ion bombardment and its application to surface analysis