Theory of particle and hole transfer in elastic nucleus-nucleus scattering