Wavelength dispersion of third-order nonlinearities in organic and glass materials