Thermal properties of metal-halide perovskites