Effect of nickel and magnesium on zinc electrowinning using sulfate solutions