A non-hydrostatic pressure distribution solver for the nonlinear shallow water equations over irregular topography