p - q theory for active compensation applied to supergrids and microgrids | IEEE Conference Publication | IEEE Xplore