Transformation kinetics for nucleation on second-phase particles: analytical solution and computer simulation