Dodgers hang on, beat Nationals in Game 5 to advance to NLCS