The solubility of metals in liquid polar phases