What is the relationship between frequency and energy​