Phenomenological Theory of Antiferroelectric Transition. IV. Ferrielectric