The choice of operating parameters for microanalysis by electron energy-loss spectroscopy