The Interpretation Of Electron Energy-Loss Spectroscopy In Complex Systems: A Dft Based Study