Toughening of conducting cracks due to domain switching