Study of Oxygen Vacancies in TiO2 Nanostructures and Their Relationship with Photocatalytic Activity