Elimination of the numerical Cerenkov instability for spectral EM-PIC codes