Variation of the frequency-magnitude relation during earthquake sequences in New Zealand