Activation energies for quantum diffusion of hydrogen in metals and on metal surfaces using delocalized nuclei within the density-functional theory.