A potential-of-mean-force approach for fracture mechanics of heterogeneous materials using the lattice element method