Counteracting thermal issues in EUV-Lithography using an adaptive optics system