Transformation- and reaction-enhanced ductility in rocks