Mars’ external and internal magnetic fields from orbital observations