Architecting the smart grid as a holarchy