Spectral changes for local cosmic rays. II. The electron component and its interpretation