Heat equation inversion framework for average SAR calculation from magnetic resonance thermal imaging