Modeling and Implementation of a Wave Energy Converter Emulator for Testing Multi-port Power Converters in a Marine DC Microgrid