Effect of surface fluorination on the electrochemical and photoelectrocatalytic properties of nanoporous titanium dioxide electrodes.