Phase Transitions in Ferroelectric and Antiferroelectric Crystals