Preconditioners based on windowed Fourier frames applied to elliptic partial differential equations