Role of oxygen content on the magnetic properties of epitaxial anatase and rutile TiO2 thin films