Generalizing to New Dynamical Systems via Frequency Domain Adaptation