Surface spin-flop and discommensuration transitions in antiferromagnets