Imperfections in and ion diffusion through oxide layers on silicon