Photothermal characterization of optical thin films