Parra has triple, scores twice in D-backs win