Integration of electrical energy storage in wave energy hardware-in-the-loop test rigs