A unified framework for the fractional Fourier transform