A magnetic resonance device designed via global optimization techniques