Nationals edge Marlins 3-2 in 10 innings