Effect of Intermediate Principal Stress on the Strength, Deformation, and Permeability of Sandstone