Frequency and Energy of Photons