Weak anchoring effects in smectic-A Fréedericksz transitions