Electron acceleration by a laser pulse in vacuum