Semiconductor-doped glasses