Thermal distortion minimization by geometry optimization for water-cooled white beam mirror or multilayer optics