Electromagnetic pulse generation in petawatt laser shots