Hybrid dc–ac electron gun for fs-electron pulse generation