Controlled formation of anatase and rutile TiO2 thin films by reactive magnetron sputtering