Fundamentals of the Diffuse Interface Theory of Nucleation