Surface Protection and Selective Masking during Diffusion in Silicon