Baroclinic wave generation by barotropic waves passing over a shelf