Continuum damage mechanics for softening of brittle materials