Hierarchical Blockchain Design for Distributed Control and Energy Trading Within Microgrids | Synapse