Blockchain and Artificial Intelligence Technologies for Smart Energy Systems