Discrete energy on rectifiable sets. (2019)