Optical applications of dielectric thin films