Microscopic expression for dielectric friction on a moving ion