A new NASA mission has launched today carrying an Imperial-built instrument which will measure magnetic fields in space.