Optimization of iron and aluminum recovery in bauxite