Modeling of unsteady two-phase reactive flow in porous beds of propellant