Real-Time Power Flow Monitoring and Control System for Microgrids Integration in Islanded Scenarios