Thermal analysis of the mechanical structure of the solar telescope GREGOR