Kramers-Kronig-constrained variational dielectric fitting and the reflectance of a thin film on a substrate.