Magnetic field enhanced photoelectrochemical response of a nanostructured titanium dioxide anode