Counter-diffusion and counter-permeation of deuterium and hydrogen through palladium