Braves avoid sweep with 3-2 victory over Cardinals