A procedure for determining the nature of Mercury's core