Net-baryon diffusion in fluid-dynamic simulations of relativistic heavy-ion collisions