Photoelectrochemical properties and photocatalytic activity of nitrogen-doped nanoporous WO3 photoelectrodes under visible light