Text this: Mechanisms of thermal strengthening and deterioration in sandstone