Compositional analysis and optical properties of Co doped TiO2 thin films fabricated by spray pyrolysis method for dielectric and p hotocatalytic applications