Analysis of the wave energy in an archipelago