Synthesis of TiO2 nanoparticles by electrochemical method and their antibacterial application