A theoretical framework for oxygen redox chemistry for sustainable batteries