Harper helps Nationals beat Diamondbacks 2-1