Anode co-valorization for scalable and sustainable electrolysis