Second harmonic generation in a laser channel