Optical nonlinearities in semiconductor-doped glasses.