Steady flow of water through a two-layer soil