Coherent Beam Combining with Second-Harmonic Generation Optimized with Adaptive Phase Control