Critical radius for heterogeneous nucleation