Charge Transfer in Inelastic Ion and Atom–Surface Collisions