Charge exchange and energy loss of particles interacting with surfaces.