Thermal Spin-Valve Effect in Magnetic Multi-layered Nanowires