Imparting chemical specificity to nanometer-spaced electrodes