Testing and control of a power take-off system for an oscillating-water-column wave energy converter