Electrochemical processing of Cu and Ni nanowire arrays