Laser-induced darkening in semiconductor-doped glasses