Heavy-ion friction force from a gas-kinetic model