Simultaneous frequency and T2 mapping, applied to thermometry and to susceptibility-weighted imaging