Baryon number transport in high-energy nuclear collisions