Statistical Physics: Electromagnetic Cavities and Black Body Radiation