Magnetic Tunnel Junction as an On-Chip Temperature Sensor