Oxidation and reduction of zinc oxide surfaces: monitored by measuring the losses in guided optical modes