Aggregation and long-memory: An analysis based on the discrete Fourier transform