Diffusion coefficient measured by impedance spectroscopy