Thickness measurement of dielectric films by wavelength scanning method