Finite-difference approximation of energies in fracture mechanics