Comparative Study of the Hydromechanical Behavior of Intact, Horizontally Jointed, and Vertically Jointed Rocks under Undrained Conditions