The effect of total stress and temperature on the water activity of shales