Photoerasure of UV-light-induced index change: wavelength dependence and use in the fabrication of gratings