Solution of the non-steady state problem in nucleation kinetics