Laser-induced gratings in CdS