Modeling of transformation toughening in brittle materials