Minimization of atmospheric distortion of optical waves in adaptive optics