Holonic architecture of the smart grid