Evidence for distinct stages of magma history recorded by the compositions of accessory apatite and zircon