Gauge fields at finite temperatures—“Thermo field dynamics” and the KMS condition and their extension to gauge theories