Means for cooling the gradient coils or thermal shielding of the gradient coils