Relaxation phenomena in second-order nonlinearity of thermally and optically poled Nb2O5-TeO2 glasses