Competition of oxygen evolution and desulfurization for bauxite electrolysis