Determination of the properties of Mercury's magnetic field by the MESSENGER mission