<i>δ</i>-Doping of oxygen vacancies dictated by thermodynamics in epitaxial SrTiO3 films