Ideal mixing of divalent cations in mafic magma. II. The solution of NiO and the partitioning of nickel between coexisting olivine and liquid