Control of an oscillating-water-column wave power plant for maximum energy production