Fluctuating electromagnetic fields of solids