Thermal Effects and the Effective Action of Quantum Electrodynamics