Thermodynamics and Hysteresis of Oxide Formation and Removal on Platinum (111) Surfaces