Fundamentals of Waves, Optics, and the Electromagnetic Spectrum