Integrated hydrodynamic-electrical hardware model for wave energy conversion with M4 ocean demonstrator