Internal waves in a pycnocline for a wing moving over a barrier