Measurement of nonlinear refractive index by time-resolved z-scan technique