Modeling of brittle failure based on a Hoek & Brown yield criterion