Design of an elliptical permanent magnet for surface magnetic resonance imaging