A method for evaluating the effect of crack geometry on the mechanical behavior of cracked rock masses