Nuclear magnetic resonance imaging of temperature profiles