Preparation of positive and negative electrode materials for nickel-iron batteries