Discuss the theoretical principles behind electromagnetic wave propagation in different media. How do the properties of the medium affect the speed, attenuation, and polarization of the waves? What are the fundamental equations governing these phenomena, and how do they interrelate?