The Riemann problem for the shallow water equations with discontinuous topography