Fourier series for a square-wave function