Nonlinear internal waves over variable topography