Theory of the interaction of swift ions with matter