Calculate the energy of a photon of electromagnetic radiation