Distributed Control and Optimization of Networked Microgrids: A Multi-Agent System Based Approach (Power Systems)