X-ray spectroscopic methods in the studies of nonstoichiometric TiO2−x thin films