D-backs earn series split with Dodgers with 4-2 win