Analysis of the discharge capacity of river channels with variable hydraulic resistance