The interstellar cosmic-ray electron spectrum from synchrotron radiation and direct measurements