Electron Energy-Loss Spectroscopy Theory and Simulation Applied to Nanoparticle Plasmonics