Method and apparatus for the formation of nanometer-scale electrodes, and such electrodes