An effective method to determine the probability density function of spherical second-phase particles