Chemical diffusion in CdS