Energy Quantization and Electromagnetic Radiation