Upton, Roberts homer as Diamondbacks beat Dodgers