The role of the Rankine-Hugoniot relations in staggered finite difference schemes for the shallow water equations