Rotational dependence of the Rydberg–valence interactions in the 1Πg states of molecular oxygen