Transcritical two-layer flow over topography