A Detailed dSPACE-Based Implementation of Modulated Model Predictive Control for AC Microgrids