Electrophoretic deposition of Sn-doped TiO2 nanoparticles and its optical and photocatalytic properties