Rydberg–valence interactions in the Πg states of O2