On the Riemann solutions of the balance equations for steam and water flow in a porous medium