Time- and frequency-resolved fluorescence with a single TCSPC detector via a Fourier-transform approach