Using electrons as a high-resolution probe of optical modes in individual nanowires.