Data-driven understanding of energy systems