The effect of line defects on the uniformity of nucleation on a substrate