High-resolution analysis of the physicochemical characteristics of sandstone media at the lithofacies scale