Modeling the changing roles of snow and permafrost in mid- and high-latitude climate systems