Modeling Time Series Dynamics with Fourier Ordinary Differential Equations