Local Fourier Bases and Modulation Spaces