A simulation model of alluvial stratigraphy