Nationals win marathon game in Los Angeles, 8-5