A computer system for imaging and spectroscopy in analytical electron microscopy