Advanced metering applications in microgrids: A hardware-in-the-loop electric power setup | IET Conference Publication | IEEE Xplore