Montero hits 3-run homer in D-backs' 5-4 win