The transition from phase waves to trigger waves in a model of the Zhabotinskii reaction