D-backs share first place in NL West with Dodgers after split with Giants