Building micro and nanosystems with electrochemical discharges