Simulation of magnetic circular dichroism in the electron microscope