Ion-diffusion preventing or absorbing layer