Dodgers beat D'Backs 3-2 on HR, tie Arizona atop NL West