Effect of reversible phase transformations on crack growth