Derivation of flow-duration curves using a stochastic index-flow model of daily streamflows