Thermal conductivity as a function of temperature for the most common metallic and complex hydrides