Surface dynamics and friction of K/Cu(001) characterized by helium-3 spin-echo and density functional theory