Water-balanced inlet and outlet boundary conditions of the lattice Boltzmann method for shallow water equations. (30th April 2023)