Method for determining the optical constants of thin dielectric films with variable thickness using only their shrunk reflection spectra