P-type Cu--Ti--O nanotube arrays and their use in self-biased heterojunction photoelectrochemical diodes for hydrogen generation.