Surface-induced order near the smectic-A - smectic-C transition: Comparison between ferroelectric and antiferroelectric compounds