Influence of electric fields on the smectic layer structure of ferroelectric and antiferroelectric liquid crystal devices.