High-fidelity subsurface thermal model as part of a Martian atmospheric column model