Retardation effects for the electron energy loss probability in GaP and Si