Contrast in the electron spectroscopic imaging mode of a TEM