Linear-Scaling Density Functional Theory And Theoretical Electron Energy Loss Spectroscopy Investigations Of Surfaces And Defects In Nanomaterials