Enabling clean energy to power society. Developing knowledge and AI to efficiently deploy electricity flexibility