MRI Safety Assessment of Implantable Medical Devices using Neural Networks