The maximum efficiency of wave-energy devices near coast lines