Stochastic modeling of the mechanical behavior and reliability of brittle or moderately damage-tolerant materials