Electrochemical processes at the nanoscale