Diagnosing Energy Transfer in an Idealized Ocean-Atmosphere Model: A Frequency-Domain Approach