Gain dynamics of XeF and subpicosecond pulse generation at 351 nm