Equilibrium States in Thermal Field Theory and in Algebraic Quantum Field Theory