Oxygen detection using nanostructured TiO2 thin films obtained by the molecular layering method