Text this: Oxygen Dependence of Formation, Electronic State Transition, and Spin Polarization for Anatase TiO2: A Comprehensive Study