A derivation of Griffith functionals from discrete finite-difference models