The magnetic field structure of the Small Magellanic Cloud