Real-space determination of anisotropic electronic structure by electron energy loss spectroscopy