How does the frequency of electromagnetic radiation relate to its energy?