Electrochemical synthesis of titania nanostructural arrays and their surface modification for enhanced photoelectrochemical hydrogen production