Grid emulator for compliance testing of Wave Energy Converters