Modeling brittle and tough stress–strain behavior in unidirectional ceramic matrix composites