Effect of impurities on cluster growth and nucleation