Electron Energy-Loss Spectroscopy: Analytical Theory and Numerical Simulations of Individual Nanoparticles and Nanostructures