Predicting the efficiency of oxygen-evolving electrolysis on the Moon and Mars