State estimation for wave energy converters