A Review of Agent and Service-Oriented Concepts Applied to Intelligent Energy Systems