Text this: Correction for thermal distortions of laser beams with a flexible mirror. Experimental and numerical investigations