Energy gain of fast electrons interacting with surface plasmons