Heating risk by radiofrequency and switching gradient fields in the presence of metallic implants