Electrode nanostructuring