Precision synthesis using nanoscale electrochemistry