Growth and sedimentation of dust grains in the primordial solar nebula