Insights into semiconductor nanowire conductivity using electrodeposition