Synthesis and optical properties of TiO2 nanoparticles