Exact solution of the Riemann problem for the shallow water equations with discontinuous bottom geometry