Modeling of the thermo-hydro-mechanical–chemical response of sedimentary rocks to past glaciations