Beam quality characterization of nanosecond optical parametric oscillators