An energy balance approach for crack arrest