Electronic structure of Rydberg levels of the oxygen molecule