Thermal conductivity of normal and superconducting metals