Electron beams in medical applications