Calculations of Oxygen Stability in Lithium-Rich Layered Cathodes