Detailed simulation of morphodynamics: 2. Sediment pickup, transport, and deposition