Quantum electrodynamics at finite temperature