Electron energy loss spectroscopy of Gd compounds