The Physics of Ferroelectric and Antiferroelectric Liquid Crystals