The internal structure of Mercury's core inferred from magnetic observations