Model study of a shoreline wave-power system