Tube length optimization of titania nanotube array for efficient photoelectrochemical water splitting