Thermal regimes in cratered terrain with emphasis on the role of impact melt