Surface-enhanced ordering and layer-thinning transitions in freely suspended smectic-A films