Template synthesis of copper oxide nanowires for photoelectrochemical hydrogen generation