Formation of Nanocrystals in an Amorphous Phase of Multicomponent Systems