Multilayer shallow water modeling of equatorially trapped wave in a stratified region in the Earth’s outer core