Influence of the Intermediate Principal Stress on Sandstone Failure