Resonant behaviour of an oscillating wave energy converter in a channel