A heat and water transfer model for seasonally frozen soils with application to a