Collective control in arrays of wave energy converters