Optical nonlinearities and ultrafast carrier dynamics in semiconductor doped glasses