Wave generation by an oscillating surface-pressure and its application in wave-energy extraction