The structure of chiral Sm C* liquid crystals in planar samples and its change in an electric field