Effect of foreign particles: a comprehensive understanding of 3D heterogeneous nucleation