Bourn delivers go-ahead triple to lift D-backs