Mapping temperature fields in 3D with x-ray diffraction and magnetic resonance imaging