Effect of heating on the structural and optical properties of TiO2 nanoparticles: antibacterial activity