A potential-based formulation for motion-induced electric field in MRI