First principles simulation of electronic friction effects in dynamics at metal surfaces