Measurement of the thickness dependence of absorption in HfO2 and ZnS single-layer films