Deformation twinning and its effect on crack extension