Phase transitions and peculiarities of the growth of nuclei of the new phase of a substance