Magnesium removal in reducing marine sediments by cation exchange