Structure, magnetic and optical properties of polycrystalline Co-doped TiO2 films