Friction parameter of an ion near a metal surface