Thermal nonlinearities of semiconductor doped glasses in the near infrared