Bragg resonance of waves in a two-layer fluid propagating over bottom ripples. Part II. Numerical simulation