X-ray absorption and emission spectroscopy of TiO2 thin films with modified anionic sublattice