Stanton's HR in 10th lifts Marlins past Giants 3-2