Separation of metal salts