Thermal modeling of space telescopes