The Gaia-ESO Survey: Oxygen Abundance in the Galactic Thin and Thick Disks