On Electron Acceleration At Planetary Foreshocks