A method of removal of nickel impurity from electrolytic magnesium