A Piecewise Yield Failure Criterion including the Critical State for Brittle Rock