Electromagnetic Energy and Spectrum Explained