One-dimensional ghost imaging with an electron microscope: a route towards ghost imaging with inelastically scattered electrons