First-principles equation of state and electronic properties of warm dense oxygen.