Operation modes of electron spectroscopic imaging and electron energy-loss spectroscopy in a transmission electron microscope