An improved depth‐averaged nonhydrostatic shallow water model with quadratic pressure approximation