Optimizing the gradient ring of a low-field MRI scanner