An Electromagnetic Model For Thermal Emission