D’Backs three-run homer in ninth, outburst in 10th power them to 8-5 win over Reds