Optimization of titanium dioxide film prepared by electrophoretic deposition for dye-sensitized solar cell application