Gravity and Electromagnetism as Frequency Interactions