Chronostratigraphy of glaciations and permafrost episodes in the Cordillera of western North America