The solar modulation of electrons in the heliosphere