Mathematical modeling of the growth of ellipsoidal crystals in metastable melts and solutions