The critical rate of horizontal wells in bottom-water reservoirs with an impermeable barrier