Padres beat Braves 3-2 in 12 innings