A cloud-based service-oriented architecture to unlock smart energy services