Indirect charge transfer of holes via surface states in ZnO nanowires for photoelectrocatalytic applications