Dispersion function of refractive index and extinction