Technologies and Applications of Digital Twin for Developing Smart Energy Systems