Thermal microscopy of spin-valve and magnetoresistive devices