Adaptive system for correcting optical aberrations of high-power lasers with dynamic determination of the reference wavefront. (July 2021)