Thermal spin transport and energy conversion