Interaction of waves with an array of floating wave energy devices