Dynamics of large-amplitude internal waves in stratified flows over topography