Data-mining of dislocation microstructures: concepts for coarse-graining of internal energies