The equilibrium alluvial river under variable flow and its channel-forming discharge