TiO2−x thin films as oxygen sensor