A potentiostatic double-step method for measuring hydrogen atom diffusion and trapping in metal electrodes—I. Theory