Characterization of electronic properties of nanowires for electrochemistry