Transformation toughening in ceramic with martensites or micro-cracks