Buckling Failure Mechanism of a Rock Dam Foundation Fractured by Gentle Through-Going and Steep Structural Discontinuities