KPFM work function characterization of ongoing reduction and oxidation of transition metal oxide crystals on examples of SrTiO3 and TiO nanowires