Electron acceleration by a short laser beam in the presence of a long-wavelength electromagnetic wave