Numerical Simulation of the Effect of Joint Orientation on the Failure Strength of Rock