Fourier matrices and Fourier tensors