Characterization of stochastic spatially and spectrally partially coherent electromagnetic pulsed beams