The role of thermal oxygen in solar cells