X-ray scattering in smectic liquid crystals: From ideal- to real-structure effects.