Coupling conditions for the shallow water equations on a network