Ferroelectric behaviour of different classes of smectic liquid crystals