Kinetics of nucleation in the concentration gradient